import { Injectable, InjectByName } from '../../decorators/inject';
import { IValueBase, IValueBoolean, IValueEmpty, IValueError, IValueNumber, IValueString, ActualValue } from './types';

@Injectable()
export class ValueNumber implements IValueNumber {
    public type: 'value' = 'value';
    public dataType: 'number' = 'number';
    public value: number;
    constructor() {
  
    }
    public update(val: any) {
      this.value = val;
    }
    public toString() {
      return this.value.toString();
    }
    public getValue() {
      return this.value;
    }
    public getOriginDataType() {
      return 'number';
    }
    public destroy() {
  
    }
  }